package com.depthsdata.coe.service;
/**
 * Template Name : DTO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Nov 30 16:49:33 CST 2018
 * Auto Generate Date : 2019-12-27 11:41:51
  * Warning ! This file will be overwrite when regenerate !
  * 
 */

import java.util.Map;
import java.util.HashMap;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.beanutils.BeanMap;
import net.dao.IDataPopulateCallback;


public class BusinessParamsBean implements java.io.Serializable {

        
	private static Map<String,String> mappedDaoFields = new HashMap<String,String>();
    
	private com.depthsdata.coe.dao.BusinessParams businessParams;

	protected BeanMap getBeanMap(){
	
		return new BeanMap(businessParams);
	}
	
	static{
				
												
		mappedDaoFields.put("id",com.depthsdata.coe.dao.IBusinessParamsDAO.Id);
		
																																						
				
																
		mappedDaoFields.put("businessProcessId",com.depthsdata.coe.dao.IBusinessParamsDAO.BusinessProcessId);
		
																																		
				
																				
		mappedDaoFields.put("businessNodeId",com.depthsdata.coe.dao.IBusinessParamsDAO.BusinessNodeId);
		
																														
				
																								
		mappedDaoFields.put("paramName",com.depthsdata.coe.dao.IBusinessParamsDAO.ParamName);
		
																										
				
																												
		mappedDaoFields.put("paramType",com.depthsdata.coe.dao.IBusinessParamsDAO.ParamType);
		
																						
				
																																
		mappedDaoFields.put("isArray",com.depthsdata.coe.dao.IBusinessParamsDAO.IsArray);
		
																		
				
																																				
		mappedDaoFields.put("deleteFlag",com.depthsdata.coe.dao.IBusinessParamsDAO.DeleteFlag);
		
														
				
																																								
		mappedDaoFields.put("status",com.depthsdata.coe.dao.IBusinessParamsDAO.Status);
		
										
				
																																												
		mappedDaoFields.put("remarks",com.depthsdata.coe.dao.IBusinessParamsDAO.Remarks);
		
						
				
				
	}
	
	public static String getMappedDAOField(String aAttrName){
		return mappedDaoFields.get(aAttrName);
	}
	
	
	public BusinessParamsBean() {
		super();
	    		
		this.businessParams = new com.depthsdata.coe.dao.BusinessParams();
                
	}
	
		
	public BusinessParamsBean(com.depthsdata.coe.dao.BusinessParams businessParams) {
		super();
	
		this.businessParams = businessParams;
		
	}
		
		
		
    	
	public com.depthsdata.coe.dao.BusinessParams convertToBusinessParams(){
		return this.businessParams;
	}
	
	public com.depthsdata.coe.dao.BusinessParams convertTo(){
		return this.businessParams;
	}
	
			
		
			
			
		
	/**
	 * Get id
	 * 
	 * @return long
	 */
	public long getId(){
		return (long) this.businessParams.getId();
	}
	
	/**
	 * Set id
	 * 
	 * @parameter long
	 */
	public void setId(long id){
		
		this.businessParams.setId(id);
	}
		
																			
		
		
					
			
		
	/**
	 * Get businessProcessId
	 * 
	 * @return long
	 */
	public long getBusinessProcessId(){
		return (long) this.businessParams.getBusinessProcessId();
	}
	
	/**
	 * Set businessProcessId
	 * 
	 * @parameter long
	 */
	public void setBusinessProcessId(long businessProcessId){
		
		this.businessParams.setBusinessProcessId(businessProcessId);
	}
		
																	
		
		
							
			
		
	/**
	 * Get businessNodeId
	 * 
	 * @return long
	 */
	public long getBusinessNodeId(){
		return (long) this.businessParams.getBusinessNodeId();
	}
	
	/**
	 * Set businessNodeId
	 * 
	 * @parameter long
	 */
	public void setBusinessNodeId(long businessNodeId){
		
		this.businessParams.setBusinessNodeId(businessNodeId);
	}
		
															
		
		
									
			
		
	/**
	 * Get paramName
	 * 
	 * @return String
	 */
	public String getParamName(){
		return (String) this.businessParams.getParamName();
	}
	
	/**
	 * Set paramName
	 * 
	 * @parameter String
	 */
	public void setParamName(String paramName){
		
		this.businessParams.setParamName(paramName);
	}
		
													
		
		
											
			
		
	/**
	 * Get paramType
	 * 
	 * @return String
	 */
	public String getParamType(){
		return (String) this.businessParams.getParamType();
	}
	
	/**
	 * Set paramType
	 * 
	 * @parameter String
	 */
	public void setParamType(String paramType){
		
		this.businessParams.setParamType(paramType);
	}
		
											
		
		
													
			
		
	/**
	 * Get isArray
	 * 
	 * @return String
	 */
	public String getIsArray(){
		return (String) this.businessParams.getIsArray();
	}
	
	/**
	 * Set isArray
	 * 
	 * @parameter String
	 */
	public void setIsArray(String isArray){
		
		this.businessParams.setIsArray(isArray);
	}
		
									
		
		
															
			
		
	/**
	 * Get deleteFlag
	 * 
	 * @return long
	 */
	public long getDeleteFlag(){
		return (long) this.businessParams.getDeleteFlag();
	}
	
	/**
	 * Set deleteFlag
	 * 
	 * @parameter long
	 */
	public void setDeleteFlag(long deleteFlag){
		
		this.businessParams.setDeleteFlag(deleteFlag);
	}
		
							
		
		
																	
			
		
	/**
	 * Get status
	 * 
	 * @return String
	 */
	public String getStatus(){
		return (String) this.businessParams.getStatus();
	}
	
	/**
	 * Set status
	 * 
	 * @parameter String
	 */
	public void setStatus(String status){
		
		this.businessParams.setStatus(status);
	}
		
					
		
		
																			
			
		
	/**
	 * Get remarks
	 * 
	 * @return String
	 */
	public String getRemarks(){
		return (String) this.businessParams.getRemarks();
	}
	
	/**
	 * Set remarks
	 * 
	 * @parameter String
	 */
	public void setRemarks(String remarks){
		
		this.businessParams.setRemarks(remarks);
	}
		
			
		
			
			
			
			
			
			
			
			
			
			
			
	
	public int hashCode() {
   		return org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(this);
 	}
	
		
	public boolean equals(Object obj) {
		if (obj == null) {
            return false;
        } // end if

        if ((obj instanceof BusinessParamsBean) == false) {
            return false;
        } // end if

        BusinessParamsBean other = (BusinessParamsBean) obj;
        
        boolean isEqual = false;
        
                
        com.depthsdata.coe.dao.BusinessParams tempBusinessParams = other.convertToBusinessParams();
        
        if(tempBusinessParams == null || this.businessParams == null){
        	isEqual = false;
        }
        else if(tempBusinessParams == this.businessParams || tempBusinessParams.equals(this.businessParams) ){
        	isEqual = true;
        }
        else{
        	isEqual = false;
        }
        
        return isEqual;
	}
	
	
	public static BusinessParamsBean[] toArray(com.depthsdata.coe.dao.BusinessParams[] aBusinessParamss){
		
		return toArray(aBusinessParamss,null);
	}
	
	public static BusinessParamsBean[] toArray(com.depthsdata.coe.dao.BusinessParams[] aBusinessParamss , IDataPopulateCallback aCallBack){
		 
		 if(ArrayUtils.isEmpty(aBusinessParamss)){
		 	return new BusinessParamsBean[0];
		 }
		 
		 int length = aBusinessParamss.length;
		 
		 BusinessParamsBean[] beans = new BusinessParamsBean[length];
		  
		 for (int i = 0; i < length; i++) {
			beans[i] = new BusinessParamsBean(aBusinessParamss[i]);
			if(aCallBack != null){
			    aCallBack.populate(beans[i],new Object[]{aBusinessParamss[i]});
			}
		 }
		 
		 return beans;
	 }
	 
	 	 
}